#!/usr/bin/python

import SimpleRequest

class WykopAPI(SimpleRequest.SimpleRequest):
    
    _appkey = None
    _userkey = None
    _login = None
    def __init__(self, Apikey):
        
        self._appkey = Apikey
    
    def getUserKey(self, Login, Accountkey):
        self._addElement('user')
        self._addElement('login')
        self._addElement('appkey,'+self._appkey)
        self._addPostElement('login',Login)
        self._addPostElement('accountkey',Accountkey)
        self._send()
        data =  self._getData()
        self._userkey = data['userkey']
        self._login = data['login']

        
        